import request from '@/utils/request'

// 查询AI聊天列表
export function listDevice_aichat(query) {
  return request({
    url: '/ora/device_aichat/list',
    method: 'get',
    params: query
  })
}

// 查询AI聊天详细
export function getDevice_aichat(id) {
  return request({
    url: '/ora/device_aichat/' + id,
    method: 'get'
  })
}

// 新增AI聊天
export function addDevice_aichat(data) {
  return request({
    url: '/ora/device_aichat',
    method: 'post',
    data: data
  })
}

// 修改AI聊天
export function updateDevice_aichat(data) {
  return request({
    url: '/ora/device_aichat',
    method: 'put',
    data: data
  })
}

// 删除AI聊天
export function delDevice_aichat(id) {
  return request({
    url: '/ora/device_aichat/' + id,
    method: 'delete'
  })
}
